package com.ethink.mdm.api;

import com.ethink.mdm.api.info.CurrencyInfo;
import com.ethink.mdm.api.info.DictionaryInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 字典 Facade接口
 *
 * @author default
 * @date 2022-10-31
 */
@FeignClient(name = "ethink-mdm-service", path = "mdm-service/facade/v1/dictionary", contextId = "dictionaryFacade")
public interface DictionaryFacade {

    @PostMapping("/listDictionaryByGroup")
    @ResponseBody
    List<DictionaryInfo> listDictionaryByGroup(@RequestParam("group") String group);

    @PostMapping("/listAllCurrency")
    @ResponseBody
    List<CurrencyInfo> listAllCurrency();
}